<div class="page">
	<div class="layoutBox">
        <div class="pageHeader">
            <form id="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
            <input type="hidden" name="pageNum" value="1"/>
            <input type="hidden" name="_search_likes" value="*"/><!--哪些字段是模糊查询，逗号分隔，*为所有-->
            <div class="searchBar">
                <ul class="searchContent">
                    <li>
                        <label>分类：</label>
                        <label>
                        <input type="text" size="30" readonly="readonly" id="categoryName_article" name="categoryName" value="{$Think.request.categoryName}"/>
                        <a class="unit btn" href="__APP__/Ui/tree/mod/__MODULE__/selparent/1/selmore/1/cid/tid_article/cname/categoryName_article/selroot/1" target="dialog" rel="tree" mask="true" title="选择分类" width="400" height="450">选择分类</a>
                        <input type="hidden" id="tid_article" name="tid" value="{$Think.request.tid}" />
                        </label>
                    </li>
                    <li>
                        <label>查找范围：</label>
                        <select name="keytype">
                        <?php echo PrintOption($_REQUEST['keytype'], 'title:标题,content:内容,keywords:关键字,description:描述,rewrite:URL重写值');?>
                        </select>
                    </li>
                    <li>
                        <label>关键字：</label>
                        <input name="keyword" type="text" value="{$Think.request.keyword}" size="30"/>
                    </li>
                </ul>
                <div class="subBar">
                    <ul>
                        <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                    </ul>
                </div>
            </div>
            </form>
        </div>
	
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="__URL__/add/tid/{$Think.request.tid}" target="navTab"><span>新增</span></a></li>
				<li><a class="edit" href="__URL__/edit/id/{sid_article}" target="navTab" warn="请选择一条记录"><span>编辑</span></a></li>
                <li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo" posttype="string" rel="id" title="确实要删除这些记录吗？" warn="请至少选择一条记录"><span>删除</span></a></li>
			</ul>
		</div>

		<table class="list" width="100%" layoutH="100">
			<thead>
			<tr>
				<th><input type="checkbox" group="id" class="checkboxCtrl"></th>
				<th>编号</th>
				<th>文章标题</th>
				<th>预览图片</th>
				<th>分类</th>
				<th>录入者</th>
				<th>添加时间</th>
				<th>更新时间</th>
				<th>点击次数</th>
				<th>排序值</th>
				<th>URL重写</th>
				<th>使用模板</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody>
			<volist id="vo" name="list">
				<tr target="sid_article" rel="{$vo['id']}">
					<td><input type="checkbox" name="id" value="{$vo['id']}" /></td>
					<td>{$vo['id']}</td>
					<td><a class="edit" href="__URL__/edit/id/{$vo['id']}" target="navTab">{$vo['title']}</a></td>
					<td><notempty name="vo.img"><a href="{$vo.img|chimg=article}" target="_blank"><img src="{$vo.img|chimg=article,100,100}" height="40" border="0" /></a></notempty></td>
					<td>{$vo['tid']|getCategoryName}</td>
					<td>{$vo['adder_id']|getUserName}</td>
					<td>{$vo['add_time']|date="Y-m-d",###}</td>
					<td>{$vo['update_time']|date="Y-m-d",###}</td>
					<td>{$vo['apv']}</td>
					<td onclick="setSort('__URL__',this,{$vo['id']})" class="xingmu">{$vo['sort']}</td>
					<td>{$vo['rewrite']}</td>
					<td>{$vo['template']}</td>
					<td>{$vo['status']|getStatus}</td>
					<td>{$vo['status']|showStatus=$vo['id']}&nbsp;|&nbsp;<a class="delete" href="__URL__/foreverdelete/id/{$vo['id']}/navTabId/__MODULE__" target="ajaxTodo" title="确实要删这条记录吗？"><span>删除</span></a>&nbsp;|&nbsp;<a href="__ROOT__/index.php/Article/view/id/{$vo['id']}" target="_blank"><span>预览</span></a></td>
				</tr>
			</volist>
			</tbody>
		</table>

		<div class="panelBar">
			<div class="pages">
				<span>共{$totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
		</div>
	</div>
</div>